package com.suse.lhw.hms.foodserver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ComponentScan(basePackages = "com.suse.lhw.hms.foodserver.*")
@MapperScan("com.suse.lhw.hms.foodserver.dao")
@SpringBootApplication
@EnableTransactionManagement//开启事务回滚
public class FoodserverApplication {
    public static void main(String[] args) {
        SpringApplication.run(FoodserverApplication.class, args);
    }
}
